﻿using System.Windows.Controls;

namespace CustomComponents
{
    /// <summary>
    /// BaseControl.xaml 的交互逻辑
    /// </summary>
    public partial class BaseControl : UserControl
    {
        /// <summary>
        /// 自定义弹窗的基础控件。即模板布局
        /// </summary>
        public BaseControl()
        {
            InitializeComponent();
        }
        /// <summary>
        /// 主控件
        /// </summary>
        public StackPanel MainItem
        {
            get => Mainbox;
            set => Mainbox = value;
        }
        /// <summary>
        /// 确认按钮
        /// </summary>
        public Button YesButton
        {
            get => Comfirm;
            set => Comfirm = value;
        }
        /// <summary>
        /// 取消按钮
        /// </summary>
        public Button CancelButton
        {
            get => No;
            set => No = value;
        }
    }
}
